import http from './index'

// 分页获取列表
export const getList = (params) => {
  return http.request({
    url: '/api/user/list',
    method: 'GET',
    params: params
  })
}
// 根据id批量删除
export const removeItems = (params) => {
  return http.request({
    url: '/api/user/remove',
    method: 'POST',
    params: params
  })
}
// 获取单个实体信息
export const getItem = (params) => {
  return http.request({
    url: '/api/user/info',
    method: 'GET',
    params: params
  })
}
// 提交保存
export const submitItem = (params) => {
  return http.request({
    url: '/api/user/submit',
    method: 'POST',
    data: params
  })
}
